package com.jixiang.model.order.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.jixiang.model.goods.dtos.GoodsMemberDtos;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * (OsOrderValue)表实体类
 *
 * @author makejava
 * @since 2023-11-07 12:47:23
 */
@SuppressWarnings("serial")
@Data
public class OsOrderValue extends Model<OsOrderValue> {

    private Long id;

    private Long orderId;

    private Long goodsId;

    private Long goodsSkuId;

    private Integer count;

    private Double goodsTotalPrice;

    private Date createTime;

    @TableField(exist = false)
    private GoodsMemberDtos goodsMemberDtos;
//    private List<GoodsMemberDtos> GoodsMemberDtosList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getGoodsSkuId() {
        return goodsSkuId;
    }

    public void setGoodsSkuId(Long goodsSkuId) {
        this.goodsSkuId = goodsSkuId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Double getGoodsTotalPrice() {
        return goodsTotalPrice;
    }

    public void setGoodsTotalPrice(Double goodsTotalPrice) {
        this.goodsTotalPrice = goodsTotalPrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

